package com.estun.backroundManagementService.modules.position.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_feeding_port")
@ApiModel(value="FeedingPort对象", description="上料口表")
public class FeedingPort {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "上料口名称")
    private String name;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "工站编号")
    private String stationId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;
}
